<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>任务列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link href="cxcalendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script language="javascript" src="../script/Calendar-new.js"></script>
<script type="text/javascript">
$(function(){
	//时间搜索
	$('.input_cxcalendar').each(function(){
	    var a = new Calendar({
	        targetCls: $(this),
	        type: 'yyyy-mm-dd HH:MM:SS',
	        wday:2
	    },function(val){
	        console.log(val);
	    });
	});
});
</script>
</head>
<body>
<div class="container">
    <div class="flow">
        <div class="itemtitle">
            <h3>任务列表</h3>
            <ul>
                <li><a href="?m=micro_shop&s=task_add_edit.php&act=add"><span>添加任务</span></a></li>
            </ul>
        </div>
    </div>
    <div class="h35"></div>
    
    <form action="" method="get">
	    <input type="hidden" name="m" value="<{$smarty.get.m}>">
	    <input type="hidden" name="s" value="<{$smarty.get.s}>">
	    <table>
	        <tr>
	        	<td>创建时间：</td>
                <td>
                    <input class="w120 input_cxcalendar" type="text" name="stime" id="stime" value="<{$smarty.get.stime}>"">
                    -
                    <input class="w120 input_cxcalendar" type="text" name="etime" id="etime" value="<{$smarty.get.etime}>"">
	            </td>
                
                <td>状态：</td>
                <td>
                	<select name="status">
                		<option value="" >全部</option>
                		<option value="0" <{if $smarty.get.status=='0'}>selected<{/if}>>关闭</option>
                		<option value="1" <{if $smarty.get.status=='1'}>selected<{/if}>>开启</option>
                	</select>
                </td>
	            <td>
                	&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="搜索" />
            	</td>
	        </tr>
	    </table>
    </form>
    
    <table class="table product">
       <tbody>
       <tr class="header">
            <th width="100">ID</th>
            <th width="100">名称</th>
            <th width="100">状态</th>
            <th width="100">创建人</th>
            <th width="100">创建时间</th>
            <th width="100">操作</th>
        </tr>
        <{foreach item=list key=key from=$de.list}>
        <tr>
            <td><{$list.id}></td>
            <td><{$list.title}></td>
            <td>
            <{if $list.status==0}>关闭<{/if}>
            <{if $list.status==1}>开启<{/if}>
            </td>
            <td><{$list.create_user}></td>
            <td><{$list.create_time}></td>
            <td>
            	<a href='?m=micro_shop&s=task_add_edit.php&act=edit&id=<{$list.id}>'><{$editimg}></a>
            </td>
        </tr>
        <{foreachelse}>
        <tr>
            <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
        </tr>
        <{/foreach}>
		</tbody>
        <tfoot>
            <tr>
                <td colspan="99">
                	<div class="fl">每页最多显示： <{$de.perPageRows}>条</div>
                    <div class="page"><{$de.page}></div>
                    <div class="fr">共有<{$de.count}>条记录</div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
</body>
</html>